name = "XXX"
stock_price = 19.99  # 当前股价
stock_code = '000000'  # 股票代码
stock_price_daily_growth_factor = 1.2  # 股票每日增长系数
growth_days = 7
# 7天后最终价格 股价*(系数的7次方)
finally_stock_price = stock_price * stock_price_daily_growth_factor ** growth_days
print(f"{name}公司，股票代码：{stock_code},当前股价:{stock_price}")
print("每日增长系数是：%.1f，经过%d天的增长后，股价达到了：%.2f，未省略精度的价格为：%f" % (
    stock_price_daily_growth_factor, growth_days, finally_stock_price,
    finally_stock_price))
